package pojo.advert;

/**
 * TblActiveAdvertId entity. @author MyEclipse Persistence Tools
 */

public class TblActiveAdvertId implements java.io.Serializable {

	// Fields

	private Integer activeId;
	private Integer advertId;

	// Constructors

	/** default constructor */
	public TblActiveAdvertId() {
	}

	/** full constructor */
	public TblActiveAdvertId(Integer activeId, Integer advertId) {
		this.activeId = activeId;
		this.advertId = advertId;
	}

	// Property accessors

	public Integer getActiveId() {
		return this.activeId;
	}

	public void setActiveId(Integer activeId) {
		this.activeId = activeId;
	}

	public Integer getAdvertId() {
		return this.advertId;
	}

	public void setAdvertId(Integer advertId) {
		this.advertId = advertId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TblActiveAdvertId))
			return false;
		TblActiveAdvertId castOther = (TblActiveAdvertId) other;

		return ((this.getActiveId() == castOther.getActiveId()) || (this
				.getActiveId() != null
				&& castOther.getActiveId() != null && this.getActiveId()
				.equals(castOther.getActiveId())))
				&& ((this.getAdvertId() == castOther.getAdvertId()) || (this
						.getAdvertId() != null
						&& castOther.getAdvertId() != null && this
						.getAdvertId().equals(castOther.getAdvertId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getActiveId() == null ? 0 : this.getActiveId().hashCode());
		result = 37 * result
				+ (getAdvertId() == null ? 0 : this.getAdvertId().hashCode());
		return result;
	}

}